﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Xml;
using System.Xml.Serialization;

namespace SkypengerApp.Data
{
    /// <summary>
    /// Contient les données nécessaires à la communication TCP avec un contact
    /// </summary>
    [XmlRoot("Class_Contact")]
    public class Contact
    {
        private string _name;
        private string _ip;
        private int _port;

        [XmlElement("property_Name")]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        [XmlElement("property_IP")]
        public string IP
        {
            get { return _ip; }
            set { _ip = value; }
        }

        [XmlElement("property_Port")]
        public int Port
        {
            get { return _port; }
            set { _port = value; }
        }

        public Contact()
        {

        }
    }
}
